package pojo;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;

@Data
@TableName("staff")
public class Staff {
    @TableId
    private Long uId;

    private String uName;
    
    private String uUsername;
   
    private String uPassword;
    
    private Long uPositionId;
 
    private Boolean uStatus;
    @TableLogic
    private Boolean uDelflag;

    private Date uCreateTime;
 
    private Date uUpdateTime;

    private String uCreateUser;
   
    private String uUpdateUser;

    public Long getuId() {
        return uId;
    }

    public void setuId(Long uId) {
        this.uId = uId;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public String getuUsername() {
        return uUsername;
    }

    public void setuUsername(String uUsername) {
        this.uUsername = uUsername;
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword;
    }

    public Long getuPositionId() {
        return uPositionId;
    }

    public void setuPositionId(Long uPositionId) {
        this.uPositionId = uPositionId;
    }

    public Boolean getuStatus() {
        return uStatus;
    }

    public void setuStatus(Boolean uStatus) {
        this.uStatus = uStatus;
    }

    public Boolean getuDelflag() {
        return uDelflag;
    }

    public void setuDelflag(Boolean uDelflag) {
        this.uDelflag = uDelflag;
    }

    public Date getuCreateTime() {
        return uCreateTime;
    }

    public void setuCreateTime(Date uCreateTime) {
        this.uCreateTime = uCreateTime;
    }

    public Date getuUpdateTime() {
        return uUpdateTime;
    }

    public void setuUpdateTime(Date uUpdateTime) {
        this.uUpdateTime = uUpdateTime;
    }

    public String getuCreateUser() {
        return uCreateUser;
    }

    public void setuCreateUser(String uCreateUser) {
        this.uCreateUser = uCreateUser;
    }

    public String getuUpdateUser() {
        return uUpdateUser;
    }

    public void setuUpdateUser(String uUpdateUser) {
        this.uUpdateUser = uUpdateUser;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Staff staff = (Staff) o;
        return uId == staff.uId && Objects.equals(uName, staff.uName) && Objects.equals(uUsername, staff.uUsername) && Objects.equals(uPassword, staff.uPassword) && Objects.equals(uPositionId, staff.uPositionId) && Objects.equals(uStatus, staff.uStatus) && Objects.equals(uDelflag, staff.uDelflag) && Objects.equals(uCreateTime, staff.uCreateTime) && Objects.equals(uUpdateTime, staff.uUpdateTime) && Objects.equals(uCreateUser, staff.uCreateUser) && Objects.equals(uUpdateUser, staff.uUpdateUser);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uId, uName, uUsername, uPassword, uPositionId, uStatus, uDelflag, uCreateTime, uUpdateTime, uCreateUser, uUpdateUser);
    }
}
